.class public Lcom/instagram/android/e/k;
.super Lcom/instagram/android/d/j/a;
.source "AvatarHelper.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/d/j/a",
        "<",
        "Lcom/instagram/android/model/b/e;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic a:Lcom/instagram/android/e/f;


# direct methods
.method protected constructor <init>(Lcom/instagram/android/e/f;)V
    .locals 0
    .parameter

    .prologue
    .line 225
    iput-object p1, p0, Lcom/instagram/android/e/k;->a:Lcom/instagram/android/e/f;

    invoke-direct {p0}, Lcom/instagram/android/d/j/a;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .prologue
    .line 253
    invoke-super {p0}, Lcom/instagram/android/d/j/a;->a()V

    .line 254
    iget-object v0, p0, Lcom/instagram/android/e/k;->a:Lcom/instagram/android/e/f;

    invoke-static {v0}, Lcom/instagram/android/e/f;->c(Lcom/instagram/android/e/f;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/e/m;

    invoke-direct {v1, p0}, Lcom/instagram/android/e/m;-><init>(Lcom/instagram/android/e/k;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 260
    return-void
.end method

.method protected a(Lcom/instagram/android/d/j/j;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<",
            "Lcom/instagram/android/model/b/e;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 240
    new-instance v0, Lcom/instagram/ui/a/a;

    iget-object v1, p0, Lcom/instagram/android/e/k;->a:Lcom/instagram/android/e/f;

    iget-object v1, v1, Lcom/instagram/android/e/f;->b:Landroid/support/v4/app/Fragment;

    invoke-virtual {v1}, Landroid/support/v4/app/Fragment;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v1, Lcom/facebook/ba;->error:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->b(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->could_not_update_profile_picture:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->dismiss:I

    new-instance v2, Lcom/instagram/android/e/l;

    invoke-direct {v2, p0}, Lcom/instagram/android/e/l;-><init>(Lcom/instagram/android/e/k;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    .line 249
    return-void
.end method

.method protected a(Lcom/instagram/android/model/b/e;)V
    .locals 3
    .parameter

    .prologue
    .line 229
    if-eqz p1, :cond_0

    .line 230
    invoke-static {}, Lcom/instagram/service/d;->a()Lcom/instagram/service/d;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/instagram/service/d;->b(Lcom/instagram/android/model/b/e;)Lcom/instagram/android/model/b/e;

    .line 234
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/e/k;->a:Lcom/instagram/android/e/f;

    iget-object v0, v0, Lcom/instagram/android/e/f;->b:Landroid/support/v4/app/Fragment;

    invoke-virtual {v0}, Landroid/support/v4/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->profile_picture_changed:I

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 236
    return-void

    .line 232
    :cond_0
    const-string v0, "UpdateAvatarHelper"

    const-string v1, "Did not receive user object back"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method protected bridge synthetic a(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 225
    check-cast p1, Lcom/instagram/android/model/b/e;

    invoke-virtual {p0, p1}, Lcom/instagram/android/e/k;->a(Lcom/instagram/android/model/b/e;)V

    return-void
.end method

.method public b()V
    .locals 2

    .prologue
    .line 264
    invoke-super {p0}, Lcom/instagram/android/d/j/a;->b()V

    .line 265
    iget-object v0, p0, Lcom/instagram/android/e/k;->a:Lcom/instagram/android/e/f;

    invoke-static {v0}, Lcom/instagram/android/e/f;->c(Lcom/instagram/android/e/f;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/e/n;

    invoke-direct {v1, p0}, Lcom/instagram/android/e/n;-><init>(Lcom/instagram/android/e/k;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 272
    return-void
.end method
